package org.semanticflash.rdf.vocab
{

	import org.semanticflash.rdf.values.IRI;


	/**
	 * 
	 * @author aldo.bucchi@gmail.com
	 * 
	 */	
	public class Vocabulary
	{
		
		/**
		 * 
		 * Convenience function used to make vocabulary declarations
		 * more readable and to shield us from the factory invocation
		 * 
		 * @return 
		 * 
		 */		
		protected static function iri( ns:Namespace, localName:String ):IRI
		{
			// TODO: we could pass ns and localName separated.
			//       but IRI is not optimizing this for now
			return IRI.instance( ns.uri + localName );
		}
		
	}
	
}